package Java0307;

import java.util.Scanner;

public class MemberSale {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("请输入是否是会员（y/n）：");
        String str = sc.next();
        System.out.print("请输入消费金额：");
        int money = sc.nextInt();
        if (str.equalsIgnoreCase("y")) {
            if (money >= 200) {
                System.out.println("打7.5折");
            } else {
                System.out.println("打8折");
            }
        } else {
            if (money >= 100) {
                System.out.println("打9折");
            } else {
                System.out.println("不打折");
            }
        }
    }
}
